home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / tooltalk / tooltalk-macros.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  2.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 32 34 3a 30 | 31 20 31 39 39 35 0a 3b | 14:24:0|1 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 74 6f | 6f 6c 74 61 6c 6b 2f 74 |/lisp/to|oltalk/t|
|00000090| 6f 6f 6c 74 61 6c 6b 2d | 6d 61 63 72 6f 73 2e 65 |ooltalk-|macros.e|
|000000a0| 6c 0a 3b 3b 3b 20 65 6d | 61 63 73 20 76 65 72 73 |l.;;; em|acs vers|
|000000b0| 69 6f 6e 20 31 39 2e 31 | 33 20 58 45 6d 61 63 73 |ion 19.1|3 XEmacs|
|000000c0| 20 4c 75 63 69 64 2e 0a | 3b 3b 3b 20 62 79 74 65 | Lucid..|;;; byte|
|000000d0| 63 6f 6d 70 20 76 65 72 | 73 69 6f 6e 20 32 2e 32 |comp ver|sion 2.2|
|000000e0| 35 3b 20 31 2d 53 65 70 | 2d 39 34 2e 0a 3b 3b 3b |5; 1-Sep|-94..;;;|
|000000f0| 20 6f 70 74 69 6d 69 7a | 61 74 69 6f 6e 20 69 73 | optimiz|ation is|
|00000100| 20 6f 6e 2e 0a 3b 3b 3b | 20 74 68 69 73 20 66 69 | on..;;;| this fi|
|00000110| 6c 65 20 75 73 65 73 20 | 6f 70 63 6f 64 65 73 20 |le uses |opcodes |
|00000120| 77 68 69 63 68 20 64 6f | 20 6e 6f 74 20 65 78 69 |which do| not exi|
|00000130| 73 74 20 69 6e 20 45 6d | 61 63 73 20 31 38 2e 0a |st in Em|acs 18..|
|00000140| 0a 28 69 66 20 28 61 6e | 64 20 28 62 6f 75 6e 64 |.(if (an|d (bound|
|00000150| 70 20 27 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |p 'emacs|-version|
|00000160| 29 0a 09 20 28 6f 72 20 | 28 61 6e 64 20 28 62 6f |).. (or |(and (bo|
|00000170| 75 6e 64 70 20 27 65 70 | 6f 63 68 3a 3a 76 65 72 |undp 'ep|och::ver|
|00000180| 73 69 6f 6e 29 20 65 70 | 6f 63 68 3a 3a 76 65 72 |sion) ep|och::ver|
|00000190| 73 69 6f 6e 29 0a 09 20 | 20 20 20 20 28 73 74 72 |sion).. | (str|
|000001a0| 69 6e 67 2d 6c 65 73 73 | 70 20 65 6d 61 63 73 2d |ing-less|p emacs-|
|000001b0| 76 65 72 73 69 6f 6e 20 | 22 31 39 22 29 29 29 0a |version |"19"))).|
|000001c0| 20 20 20 20 28 65 72 72 | 6f 72 20 22 54 68 69 73 | (err|or "This|
|000001d0| 20 66 69 6c 65 20 77 61 | 73 20 63 6f 6d 70 69 6c | file wa|s compil|
|000001e0| 65 64 20 66 6f 72 20 45 | 6d 61 63 73 20 31 39 2e |ed for E|macs 19.|
|000001f0| 22 29 29 0a 0a 28 66 73 | 65 74 20 27 64 65 73 74 |"))..(fs|et 'dest|
|00000200| 72 75 63 74 75 72 69 6e | 67 2d 62 69 6e 64 2d 74 |ructurin|g-bind-t|
|00000210| 6f 6f 6c 74 61 6c 6b 2d | 6d 65 73 73 61 67 65 20 |ooltalk-|message |
|00000220| 27 28 6d 61 63 72 6f 20 | 2e 20 23 5b 28 76 61 72 |'(macro |. #[(var|
|00000230| 69 61 62 6c 65 73 20 61 | 72 67 73 2d 63 6f 75 6e |iables a|rgs-coun|
|00000240| 74 20 6d 65 73 73 61 67 | 65 20 26 72 65 73 74 20 |t messag|e &rest |
|00000250| 62 6f 64 79 29 20 22 08 | 19 5c 6e 1b 0c 1d c6 1e |body) ".|.\n.....|
|00000260| 07 c8 1e 09 c8 1e 5c 6e | c8 1e 0b c8 1e 0c c8 1e |......\n|........|
|00000270| 0d 0b ce 0d cf 45 44 0e | 0d 42 16 0d 09 ab d6 09 |.....ED.|.B......|
|00000280| 40 16 09 09 41 11 0e 09 | c8 3d ab 87 0e 07 54 16 |@...A...|.=....T.|
|00000290| 07 aa 69 0e 09 3c ab 8d | 0e 09 40 16 5c 6e 0e 09 |..i..<..|..@.\n..|
|000002a0| 41 40 16 0b aa 87 0e 09 | 16 5c 6e d0 16 0b 0e 07 |A@......|.\n.....|
|000002b0| 54 16 07 ce 0d 0e 0b d1 | 9a ab 83 d2 aa 81 d3 0e |T.......|........|
|000002c0| 07 46 16 0c 0e 5c 6e d4 | d5 0e 07 0b 45 0e 0c 45 |.F...\n.|....E..E|
|000002d0| 44 0e 0d 42 16 0d aa 27 | d6 0e 0d 9f 44 0e 17 a4 |D..B...'|....D...|
|000002e0| 2e 09 87 22 20 5b 76 61 | 72 69 61 62 6c 65 73 20 |..." [va|riables |
|000002f0| 76 61 72 2d 6c 69 73 74 | 20 61 72 67 73 2d 63 6f |var-list| args-co|
|00000300| 75 6e 74 20 6e 61 72 67 | 73 20 6d 65 73 73 61 67 |unt narg|s messag|
|00000310| 65 20 6d 73 67 20 2d 31 | 20 6e 20 6e 69 6c 20 76 |e msg -1| n nil v|
|00000320| 61 72 2d 69 74 65 6d 20 | 76 61 72 20 74 79 70 65 |ar-item |var type|
|00000330| 20 72 65 71 75 65 73 74 | 20 62 69 6e 64 69 6e 67 | request| binding|
|00000340| 73 20 67 65 74 2d 74 6f | 6f 6c 74 61 6c 6b 2d 6d |s get-to|oltalk-m|
|00000350| 65 73 73 61 67 65 2d 61 | 74 74 72 69 62 75 74 65 |essage-a|ttribute|
|00000360| 20 27 61 72 67 73 5f 63 | 6f 75 6e 74 20 22 73 74 | 'args_c|ount "st|
|00000370| 72 69 6e 67 22 20 22 69 | 6e 74 22 20 27 61 72 67 |ring" "i|nt" 'arg|
|00000380| 5f 69 76 61 6c 20 27 61 | 72 67 5f 76 61 6c 20 69 |_ival 'a|rg_val i|
|00000390| 66 20 3c 20 6c 65 74 2a | 20 62 6f 64 79 5d 20 35 |f < let*| body] 5|
|000003a0| 20 22 5c 0a 0a 61 72 67 | 6c 69 73 74 3a 20 28 76 | "\..arg|list: (v|
|000003b0| 61 72 69 61 62 6c 65 73 | 20 61 72 67 73 2d 63 6f |ariables| args-co|
|000003c0| 75 6e 74 20 6d 65 73 73 | 61 67 65 20 26 72 65 73 |unt mess|age &res|
|000003d0| 74 20 62 6f 64 79 29 0a | 0a 42 69 6e 64 73 20 56 |t body).|.Binds V|
|000003e0| 41 52 49 41 42 4c 45 53 | 20 74 6f 20 74 68 65 20 |ARIABLES| to the |
|000003f0| 41 52 47 5f 56 41 4c 73 | 20 61 6e 64 20 41 52 47 |ARG_VALs| and ARG|
|00000400| 5f 49 56 41 4c 73 20 6f | 66 20 4d 45 53 53 41 47 |_IVALs o|f MESSAG|
|00000410| 45 2c 20 0a 73 74 61 72 | 74 69 6e 67 20 66 72 6f |E, .star|ting fro|
|00000420| 6d 20 4e 20 3d 20 30 2c | 20 61 6e 64 20 65 78 65 |m N = 0,| and exe|
|00000430| 63 75 74 65 73 20 42 4f | 44 59 20 69 6e 20 74 68 |cutes BO|DY in th|
|00000440| 61 74 20 63 6f 6e 74 65 | 78 74 2e 0a 42 69 6e 64 |at conte|xt..Bind|
|00000450| 73 20 61 63 74 75 61 6c | 20 6e 75 6d 62 65 72 20 |s actual| number |
|00000460| 6f 66 20 6d 65 73 73 61 | 67 65 20 61 72 67 73 20 |of messa|ge args |
|00000470| 74 6f 20 41 52 47 53 2d | 43 4f 55 4e 54 2e 20 20 |to ARGS-|COUNT. |
|00000480| 0a 0a 56 41 52 49 41 42 | 4c 45 53 20 69 73 20 61 |..VARIAB|LES is a|
|00000490| 20 6c 69 73 74 20 6f 66 | 20 6c 6f 63 61 6c 20 76 | list of| local v|
|000004a0| 61 72 69 61 62 6c 65 73 | 20 74 6f 20 62 69 6e 64 |ariables| to bind|
|000004b0| 2e 20 20 0a 45 61 63 68 | 20 69 74 65 6d 20 69 6e |. .Each| item in|
|000004c0| 20 56 41 52 49 41 42 4c | 45 53 20 69 73 20 65 69 | VARIABL|ES is ei|
|000004d0| 74 68 65 72 20 6e 69 6c | 2c 20 61 20 73 79 6d 62 |ther nil|, a symb|
|000004e0| 6f 6c 2c 20 6f 72 20 61 | 20 6c 69 73 74 20 6f 66 |ol, or a| list of|
|000004f0| 20 74 68 65 20 66 6f 72 | 6d 3a 0a 0a 09 28 73 79 | the for|m:...(sy|
|00000500| 6d 62 6f 6c 20 74 79 70 | 65 29 0a 0a 49 66 20 74 |mbol typ|e)..If t|
|00000510| 68 65 20 69 74 65 6d 20 | 69 73 20 6e 69 6c 2c 20 |he item |is nil, |
|00000520| 74 68 65 20 6e 74 68 20 | 41 52 47 5f 56 41 4c 20 |the nth |ARG_VAL |
|00000530| 6f 72 20 41 52 47 5f 49 | 56 41 4c 20 6f 66 20 4d |or ARG_I|VAL of M|
|00000540| 45 53 53 41 47 45 20 69 | 73 20 73 6b 69 70 70 65 |ESSAGE i|s skippe|
|00000550| 64 2e 0a 49 66 20 74 68 | 65 20 69 74 65 6d 20 69 |d..If th|e item i|
|00000560| 73 20 61 20 73 79 6d 62 | 6f 6c 2c 20 74 68 65 20 |s a symb|ol, the |
|00000570| 6e 74 68 20 41 52 47 5f | 56 41 4c 20 6f 66 20 4d |nth ARG_|VAL of M|
|00000580| 45 53 53 41 47 45 20 69 | 73 20 62 6f 75 6e 64 2e |ESSAGE i|s bound.|
|00000590| 0a 49 66 20 74 68 65 20 | 69 74 65 6d 20 69 73 20 |.If the |item is |
|000005a0| 61 20 6c 69 73 74 0a 09 | 49 66 20 74 79 70 65 20 |a list..|If type |
|000005b0| 3d 20 20 5c 22 69 6e 74 | 5c 22 20 74 68 65 20 6e |= \"int|\" the n|
|000005c0| 74 68 20 41 52 47 5f 49 | 56 41 4c 20 6f 66 20 4d |th ARG_I|VAL of M|
|000005d0| 45 53 53 41 47 45 20 69 | 73 20 62 6f 75 6e 64 2c |ESSAGE i|s bound,|
|000005e0| 0a 09 6f 74 68 65 72 77 | 69 73 65 20 74 68 65 20 |..otherw|ise the |
|000005f0| 6e 74 68 20 41 52 47 5f | 56 41 4c 20 6f 66 20 4d |nth ARG_|VAL of M|
|00000600| 45 53 53 41 47 45 20 69 | 73 20 62 6f 75 6e 64 2e |ESSAGE i|s bound.|
|00000610| 0a 0a 49 66 20 74 68 65 | 72 65 20 61 72 65 20 6d |..If the|re are m|
|00000620| 6f 72 65 20 69 74 65 6d | 73 20 74 68 61 6e 20 61 |ore item|s than a|
|00000630| 63 74 75 61 6c 20 61 72 | 67 75 6d 65 6e 74 73 20 |ctual ar|guments |
|00000640| 69 6e 20 4d 45 53 53 41 | 47 45 2c 20 74 68 65 20 |in MESSA|GE, the |
|00000650| 65 78 74 72 61 0a 69 74 | 65 6d 73 20 61 72 65 20 |extra.it|ems are |
|00000660| 62 6f 75 6e 64 20 74 6f | 20 6e 69 6c 2e 0a 0a 46 |bound to| nil...F|
|00000670| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 0a 0a 28 64 65 |or examp|le,..(de|
|00000680| 73 74 72 75 63 74 75 72 | 69 6e 67 2d 62 69 6e 64 |structur|ing-bind|
|00000690| 2d 74 6f 6f 6c 74 61 6c | 6b 2d 6d 65 73 73 61 67 |-tooltal|k-messag|
|000006a0| 65 20 28 61 20 28 62 20 | 5c 22 69 6e 74 5c 22 29 |e (a (b |\"int\")|
|000006b0| 20 6e 69 6c 20 64 29 20 | 66 6f 6f 20 6d 73 67 0a | nil d) |foo msg.|
|000006c0| 20 20 78 20 79 20 7a 29 | 0a 0a 65 78 70 61 6e 64 | x y z)|..expand|
|000006d0| 73 20 74 6f 0a 0a 28 6c | 65 74 2a 20 28 28 66 6f |s to..(l|et* ((fo|
|000006e0| 6f 20 28 67 65 74 2d 74 | 6f 6f 6c 74 61 6c 6b 2d |o (get-t|ooltalk-|
|000006f0| 6d 65 73 73 61 67 65 2d | 61 74 74 72 69 62 75 74 |message-|attribut|
|00000700| 65 20 6d 73 67 20 27 61 | 72 67 73 5f 63 6f 75 6e |e msg 'a|rgs_coun|
|00000710| 74 29 29 0a 20 20 20 20 | 20 20 20 28 61 20 28 69 |t)). | (a (i|
|00000720| 66 20 28 3c 20 30 20 66 | 6f 6f 29 0a 09 20 20 20 |f (< 0 f|oo).. |
|00000730| 20 20 20 28 67 65 74 2d | 74 6f 6f 6c 74 61 6c 6b | (get-|tooltalk|
|00000740| 2d 6d 65 73 73 61 67 65 | 2d 61 74 74 72 69 62 75 |-message|-attribu|
|00000750| 74 65 20 6d 73 67 20 27 | 61 72 67 5f 76 61 6c 20 |te msg '|arg_val |
|00000760| 30 29 29 29 0a 20 20 20 | 20 20 20 20 28 62 20 28 |0))). | (b (|
|00000770| 69 66 20 28 3c 20 31 20 | 66 6f 6f 29 20 0a 09 20 |if (< 1 |foo) .. |
|00000780| 20 20 20 20 20 28 67 65 | 74 2d 74 6f 6f 6c 74 61 | (ge|t-toolta|
|00000790| 6c 6b 2d 6d 65 73 73 61 | 67 65 2d 61 74 74 72 69 |lk-messa|ge-attri|
|000007a0| 62 75 74 65 20 6d 73 67 | 20 27 61 72 67 5f 76 61 |bute msg| 'arg_va|
|000007b0| 6c 20 31 29 29 29 0a 20 | 20 20 20 20 20 20 28 64 |l 1))). | (d|
|000007c0| 20 28 69 66 20 28 3c 20 | 33 20 66 6f 6f 29 0a 09 | (if (< |3 foo)..|
|000007d0| 20 20 20 20 20 20 28 67 | 65 74 2d 74 6f 6f 6c 74 | (g|et-toolt|
|000007e0| 61 6c 6b 2d 6d 65 73 73 | 61 67 65 2d 61 74 74 72 |alk-mess|age-attr|
|000007f0| 69 62 75 74 65 20 6d 73 | 67 20 27 61 72 67 5f 76 |ibute ms|g 'arg_v|
|00000800| 61 6c 20 33 29 29 29 29 | 0a 20 20 78 20 79 20 7a |al 3))))|. x y z|
|00000810| 29 0a 0a 53 65 65 20 47 | 45 54 2d 54 4f 4f 4c 54 |)..See G|ET-TOOLT|
|00000820| 41 4c 4b 2d 4d 45 53 53 | 41 47 45 2d 41 54 54 52 |ALK-MESS|AGE-ATTR|
|00000830| 49 42 55 54 45 20 66 6f | 72 20 6d 6f 72 65 20 69 |IBUTE fo|r more i|
|00000840| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0a 22 5d 29 29 |nformati|on.."]))|
|00000850| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+